package homework;

import java.util.ArrayList;
import java.util.Random;

public class work07 {
	public static void main(String[] args) {
		ArrayList<Integer> list =new ArrayList<Integer>();
		checkIn(list);
	}
	
	public static void checkIn(ArrayList<Integer> list){
		Random r = new Random();
		ArrayList<Integer> listOu =new ArrayList<Integer>();
		for(int i=0;i<20;i++){
			int num = r.nextInt(100);
			list.add(num);
			if(list.get(i)%2==0){
				listOu.add(num);
			}
		}
		System.out.println(list);
		System.out.println(listOu);
		
	}
}
